package com.shushan.home.bean;

/**
 * @ClassName: ToyAwardBean
 * @Desciption: //奖励相关的一些数据
 * @author: zhangshihao
 * @date: 2018-04-09
 */
public class ToyAwardBean {

    public static final int TYPE_SYNC_EXERCISE = 0;//同步练习
    public static final int TYPE_WRONG_TOPIC = 1;//错题练习
    public static final int TYPE_SPECIAL_SUBJECT = 2;//专题练习

    //练习类型
    private int exerciseType = TYPE_SYNC_EXERCISE;
    //练习次数
    private int exerciseTimes;
    //完成人数
    private int completeChildNum ;
    //正在练习人数
    private int exercisingChildNum;
    //玩具奖励图片uri
    private String awardPicUri;
    //玩具奖励名称
    private String toyName;

    public ToyAwardBean(){
        //do nothing
    }

    public ToyAwardBean(int exerciseType, int exerciseTimes, int completeChildNum, int exercisingChildNum, String awardPicUri, String toyName){
        this.exerciseType = exerciseType;
        this.exerciseTimes = exerciseTimes;
        this.completeChildNum = completeChildNum;
        this.exercisingChildNum = exercisingChildNum;
        this.awardPicUri = awardPicUri;
        this.toyName = toyName;
    }

    public static String getExerciseNameByType(int type){
        switch (type){
            case TYPE_SYNC_EXERCISE:
                return "同步练习";
            case TYPE_WRONG_TOPIC:
                return "错题练习";
            case TYPE_SPECIAL_SUBJECT:
                return "专题练习";
            default:
                return null;
        }
    }

    public int getExerciseType() {
        return exerciseType;
    }

    public void setExerciseType(int exerciseType) {
        this.exerciseType = exerciseType;
    }

    public int getCompleteChildNum() {
        return completeChildNum;
    }

    public void setCompleteChildNum(int completeChildNum) {
        this.completeChildNum = completeChildNum;
    }

    public int getExercisingChildNum() {
        return exercisingChildNum;
    }

    public void setExercisingChildNum(int exercisingChildNum) {
        this.exercisingChildNum = exercisingChildNum;
    }

    public String getAwardPicUri() {
        return awardPicUri;
    }

    public void setAwardPicUri(String awardPicUri) {
        this.awardPicUri = awardPicUri;
    }

    public int getExerciseTimes() {
        return exerciseTimes;
    }

    public void setExerciseTimes(int exerciseTimes) {
        this.exerciseTimes = exerciseTimes;
    }

    public String getToyName() {
        return toyName;
    }

    public void setToyName(String toyName) {
        this.toyName = toyName;
    }
}
